package com.nobody.facepk.model;

import java.sql.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.nobody.facepk.persist.PersistentSupport;

@Entity
@Table(name="T_Message")
public class Message extends PersistentSupport{
	private Long userId;
	private String content;
	private Date createTime;
	
	public Message() {
		this.createTime = new Date(System.currentTimeMillis());
	}
	
	public Message(Long userId, String content) {
		this.userId = userId;
		this.content = content;
		this.createTime = new Date(System.currentTimeMillis());
	}
	
	public Long getUserId() {
		return this.userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getContent() {
		return this.content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}
